package com.tgky.ybzb.common;

import java.io.Serializable;
import java.util.List;

public class IdParam<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    private T id;
    private List<T> ids;

    public IdParam() {
    }

    public T getId() {
        return this.id;
    }

    public List<T> getIds() {
        return this.ids;
    }

    public void setId(final T id) {
        this.id = id;
    }

    public void setIds(final List<T> ids) {
        this.ids = ids;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof IdParam)) {
            return false;
        } else {
            IdParam<?> other = (IdParam)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$ids = this.getIds();
                Object other$ids = other.getIds();
                if (this$ids == null) {
                    if (other$ids != null) {
                        return false;
                    }
                } else if (!this$ids.equals(other$ids)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof IdParam;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $ids = this.getIds();
        result = result * 59 + ($ids == null ? 43 : $ids.hashCode());
        return result;
    }

    public String toString() {
        return "IdParam(id=" + this.getId() + ", ids=" + this.getIds() + ")";
    }
}
